<?php

/**
 * 商品管理
 * @author hushuai
 *
 */
class NewfileAction extends CommonAction{
	
	public function index(){
		$a = array (
		13 =>
		array (
				'title' => '尺寸',
				'entitle' => 'Size',
				'type' => '1',
				'ismust' => '1',
				'config' =>
				array (
						1 =>
						array (
								'title' => '8寸',
								'entitle' => '8‘’',
								'mprice' => '0',
						),
						2 =>
						array (
								'title' => '10寸',
								'entitle' => '10‘’',
								'mprice' => '18',
						),
						3 =>
						array (
								'title' => '12寸',
								'entitle' => '12‘’',
								'mprice' => '40',
						),
				),
		),
		14 =>
		array (
				'title' => '披萨加料',
				'entitle' => 'Toppings',
				'type' => '2',
				'config' =>
				array (
						4 =>
						array (
								'title' => '蒜蓉',
								'entitle' => 'Garlic',
								'mprice' => '5',
								'maxnum' => '4',
						),
						5 =>
						array (
								'title' => '蘑菇',
								'entitle' => 'Mushroom',
								'mprice' => '10',
								'maxnum' => '4',
						),
						6 =>
						array (
								'title' => '黑橄榄',
								'entitle' => 'black olive',
								'mprice' => '10',
								'maxnum' => '4',
						),
						7 =>
						array (
								'title' => '番茄',
								'entitle' => 'tomato',
								'mprice' => '10',
								'maxnum' => '4',
						),
						8 =>
						array (
								'title' => '樱桃番茄',
								'entitle' => 'cherry tomato',
								'mprice' => '10',
								'maxnum' => '4',
						),
						9 =>
						array (
								'title' => '鸡蛋',
								'entitle' => 'eggs',
								'mprice' => '10',
								'maxnum' => '4',
						),
						10 =>
						array (
								'title' => '菠萝片',
								'entitle' => 'pineapple',
								'mprice' => '10',
								'maxnum' => '4',
						),
						11 =>
						array (
								'title' => '洋葱',
								'entitle' => 'onions',
								'mprice' => '10',
								'maxnum' => '4',
						),
						12 =>
						array (
								'title' => '玉米',
								'entitle' => 'corn',
								'mprice' => '10',
								'maxnum' => '4',
						),
						13 =>
						array (
								'title' => '水瓜柳',
								'entitle' => 'caper',
								'mprice' => '10',
								'maxnum' => '4',
						),
						14 =>
						array (
								'title' => '亚支竹',
								'entitle' => 'artichokes',
								'mprice' => '10',
								'maxnum' => '4',
						),
						15 =>
						array (
								'title' => '火腿',
								'entitle' => 'ham',
								'mprice' => '15',
								'maxnum' => '4',
						),
						16 =>
						array (
								'title' => '银鱼',
								'entitle' => 'anchovies',
								'mprice' => '15',
								'maxnum' => '4',
						),
						17 =>
						array (
								'title' => '烟肉',
								'entitle' => 'bacon',
								'mprice' => '15',
								'maxnum' => '4',
						),
						18 =>
						array (
								'title' => '鸡肉',
								'entitle' => 'chicken',
								'mprice' => '15',
								'maxnum' => '4',
						),
						19 =>
						array (
								'title' => '色拉米',
								'entitle' => 'salami',
								'mprice' => '15',
								'maxnum' => '4',
						),
						20 =>
						array (
								'title' => '彩椒',
								'entitle' => 'bell pepper',
								'mprice' => '15',
								'maxnum' => '4',
						),
						21 =>
						array (
								'title' => '芦笋',
								'entitle' => 'asparagus',
								'mprice' => '15',
								'maxnum' => '4',
						),
						22 =>
						array (
								'title' => '芝士',
								'entitle' => 'cheese',
								'mprice' => '22',
								'maxnum' => '4',
						),
						23 =>
						array (
								'title' => '虾',
								'entitle' => 'shrimp',
								'mprice' => '22',
								'maxnum' => '4',
						),
						24 =>
						array (
								'title' => '烟三文鱼',
								'entitle' => 'smoked',
								'mprice' => '22',
								'maxnum' => '4',
						),
						25 =>
						array (
								'title' => '意大利香肠',
								'entitle' => 'Italian sausage',
								'mprice' => '22',
								'maxnum' => '4',
						),
						26 =>
						array (
								'title' => '吞拿鱼',
								'entitle' => 'tuna',
								'mprice' => '22',
								'maxnum' => '4',
						),
						27 =>
						array (
								'title' => '发达芝士',
								'entitle' => 'feta cheese',
								'mprice' => '25',
								'maxnum' => '4',
						),
						28 =>
						array (
								'title' => '新鲜吞拿鱼',
								'entitle' => 'fresh tuna',
								'mprice' => '25',
								'maxnum' => '4',
						),
						29 =>
						array (
								'title' => '新鲜马苏里拉芝士',
								'entitle' => 'fresh mozzarella cheese',
								'mprice' => '25',
								'maxnum' => '4',
						),
						30 =>
						array (
								'title' => '杂锦海鲜',
								'entitle' => 'mixed seafood',
								'mprice' => '25',
								'maxnum' => '4',
						),
						31 =>
						array (
								'title' => '牛肝菌',
								'entitle' => 'porcini mushroom',
								'mprice' => '25',
								'maxnum' => '4',
						),
						32 =>
						array (
								'title' => '芦果拉',
								'entitle' => 'rocula',
								'mprice' => '25',
								'maxnum' => '4',
						),
						33 =>
						array (
								'title' => '帕玛火腿',
								'entitle' => 'parma ham',
								'mprice' => '30',
								'maxnum' => '1',
						),
						34 =>
						array (
								'title' => '风干牛肉',
								'entitle' => 'jerked beef',
								'mprice' => '35',
								'maxnum' => '1',
						),
				),
			),
		);


		array_multisort($a);
		foreach ($a as $k=>$v){
			array_multisort($a[$k]['config']);
		}
		
		$b = json_encode($a);
		F("fanlei",$b);
		dump($b);exit;

	}
}
?>